package com.java.action;

import java.util.List;

import com.java.pojo.ComDept;
import com.java.pojo.ComEmp;
import com.java.service.IDeptService;

public class ShowEditDeptAction {
private int id;
private IDeptService deptservice;
private ComDept cd;
private ComEmp ce;
private Integer mm;
private Integer my;
private List<ComEmp> elist;
public String execute(){
	System.out.println("showeditdept executing........");
	cd=deptservice.getDeptById(id);
	elist=deptservice.getAllEmpInDept();
	if((cd.getDStatus()).equals("Y")){
		mm=1;
	}
	System.out.println("showeditdept executing.........cd.getEmp:"+cd.getComEmp());
	if(cd.getComEmp()==null){
		my=1;
	}
	return "success";
}
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public IDeptService getDeptservice() {
	return deptservice;
}
public void setDeptservice(IDeptService deptservice) {
	this.deptservice = deptservice;
}
public ComDept getCd() {
	return cd;
}
public void setCd(ComDept cd) {
	this.cd = cd;
}
public Integer getMm() {
	return mm;
}
public void setMm(Integer mm) {
	this.mm = mm;
}
public List<ComEmp> getElist() {
	return elist;
}
public void setElist(List<ComEmp> elist) {
	this.elist = elist;
}
public Integer getMy() {
	return my;
}
public void setMy(Integer my) {
	this.my = my;
}

}
